import {getVideoMaterials} from '../api/product'
import { defineStore } from "pinia"
export const useMaterials = defineStore('materirals', () => {
    const materiralsinfor = reactive({
        bdZipUrl: '',
        noteUrl: ''
    })
    // 获取视频素材
    const getVideoMaterialsData = async(id:number) => {
        const res  = (await getVideoMaterials(id))
        console.log('res: ', res);
    }
    return {
        ...toRefs(materiralsinfor),
        getVideoMaterialsData
    }
})